
$().ready(function() {
	$('#all').transfer({
		to: '#emp',
		searchId: '#search',
		dblClick: true,
		searchText: '{count} options matching {keyword}',
		searchTextId: '#searchText',
		addId: '#addT',
		removeId: '#removeT', 
		addAllId: '#addAllT', 
		removeAllId: '#removeAllT',
		tClass: 'added'
	});

});

$("#button_edit").click(function() {  
      var foo = [];
      $('#emp option').each(function(i, n) {
          foo[i] = $(n).val();
      });

	  var s = "&list=" + foo.join(",");

	  post_edit(this.form, s);
});